package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {

    /**
     * @Author lijun
     * @Description 查询所有用户
     * @Date 14:36 2020/5/18
     * @Param []
     * @return java.util.List<com.lagou.pojo.User>
     **/
    public List<User> findAll() throws Exception;


    /**
     * @Author lijun
     * @Description 根据条件进行用户查询
     * @Date 14:36 2020/5/18
     * @Param [user]
     * @return com.lagou.pojo.User
     **/
    public User findByCondition(User user) throws Exception;

    /**
     * @Author lijun
     * @Description 代理添加
     * @Date 9:29 2020/5/19
     * @Param [user]
     * @return java.lang.Boolean
     **/
    public Boolean addUser(User user)throws Exception;

    /**
     * @Author lijun
     * @Description 修改
     * @Date 9:29 2020/5/19
     * @Param [user]
     * @return java.lang.Boolean
     **/
    public Boolean updateUser(User user)throws Exception;

    /**
     * @Author lijun
     * @Description 删除
     * @Date 9:29 2020/5/19
     * @Param [user]
     * @return java.lang.Boolean
     **/
    public Boolean deleteUser(User user)throws Exception;




}
